<?php
class Bliss_User_Acl extends Zend_Acl
{
	public function __construct()
	{
		$this->addRole(new Zend_Acl_Role('support'));
		$this->addRole(new Zend_Acl_Role('accounting'));
		$this->addRole(new Zend_Acl_Role('admin'));
		$this->addRole(new Zend_Acl_Role('client'));

		$this->addResource(new Zend_Acl_Resource('servers'));
		$this->addResource(new Zend_Acl_Resource('invoices'));

		// Admin can do anything
		$this->allow('admin');

		// Set what the support group can do
		$this->allow('support', 'servers', array('view', 'edit'));

		// Set what the accounting group can do
		$this->allow('accounting', 'servers', array('view'));
		$this->allow('accounting', 'invoices', array('view', 'edit'));

		// Sets what clients can do
	}
}
?>